﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucsDiemDanhTVV.ascx.cs" Inherits="WebUserControl_ucsDiemDanhTVV" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register src="uscTitleForm.ascx" tagname="uscTitleForm" tagprefix="uc1" %>

<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc2" %>

<style type="text/css">
        .AutoExtender
        {
            font-family: Verdana, Helvetica, sans-serif;
            font-size: .8em;
            font-weight: normal;
            border: solid 1px #006699;
            line-height: 20px;
            padding: 10px;
            background-color: White;
            margin-left:10px;
        }
        .AutoExtenderList
        {
            border-bottom: dotted 1px #006699;
            cursor: pointer;
            color: Maroon;
        }
        .AutoExtenderHighlight
        {
            color: White;
            background-color: #006699;
            cursor: pointer;
        }
        #divwidth
        {
          width: auto !important;    
        }
        #divwidth div
       {
        width: auto !important;   
       }
 </style>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        
        <table style="width: 100%;">
            <tr>
                <td >
                   
                    <uc1:uscTitleForm ID="uscTitleForm1" Messeage="Điểm danh tư vấn viên" runat="server" />
                   
                </td>
                
            </tr>
            <tr>
                <td align="center">
                    <table>                        
                        <tr>
                            <td align="right">
                                Ngày làm việc
                            </td>
                            <td>
                                <asp:TextBox ID="txtWorkingDay" runat="server" Width="150px" ReadOnly="True" ></asp:TextBox>
                            </td>                       
                        </tr>
                        <tr>
                            <td align="right">
                                Mã TVV
                            </td>
                            <td>
                                <asp:TextBox ID="txtMaTVV" runat="server" AutoPostBack="true" OnTextChanged="txtMaTVV_TextChanged" Width="150px" ></asp:TextBox>
                                     <div id="divwidth" style="overflow:scroll; height:150px; display:none" ></div>
                                     <cc1:AutoCompleteExtender ID="txtMaTVV_AutoCompleteExtender" 
                                        runat="server"
                                        ServiceMethod="GetTuVanVienInfo" ServicePath="~/Services/WebServiceNhapHoaDonBanHang.asmx" 
                                        TargetControlID="txtMaTVV"
                                        MinimumPrefixLength="1" 
                                        CompletionInterval="10"
                                        EnableCaching="true"
                                        CompletionSetCount="12"  
                                        CompletionListCssClass="AutoExtender"
                                        CompletionListItemCssClass="AutoExtenderList"
                                        CompletionListHighlightedItemCssClass="AutoExtenderHighlight"
                                        CompletionListElementID="divwidth"> 
                                    </cc1:AutoCompleteExtender>
                            Tên TVV
                                 <asp:TextBox ID="txtTenTVV" runat="server" Width="250px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            
                            </td>
                            <td>
                                <asp:RadioButton ID="radcheckVangMat" runat="server" Text="Vắng mặt" GroupName="isPresent" /> 
                                &nbsp;&nbsp;&nbsp; 
                                <asp:RadioButton ID="radcheckCoMat" runat="server" Text="Có mặt" 
                                    GroupName="isPresent" Checked="True" />
                            </td>
                        </tr>
                        
                         <tr>
                            <td colspan="2" align="center">
                                <asp:Button ID="btnSave" runat="server" Text="Chấp nhận" 
                                    onclick="btnSave_Click" />                                
                            </td>
                            
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <uc2:uscMsgBox ID="uscMsgBox1" runat="server" />
        
    </ContentTemplate>
</asp:UpdatePanel>
